package com.ticket.sass.admin.controller;


import com.github.xiaoymin.knife4j.annotations.ApiSupport;
import com.ticket.sass.admin.business.TicketCheckRecordBusiness;
import com.ticket.sass.admin.dto.input.ticket.TicketCheckRecordListInput;
import com.ticket.sass.admin.dto.output.ticket.TicketCheckRecordListOutput;
import com.ticket.sass.admin.model.PageModel;
import com.ticket.sass.admin.model.ResultModel;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.validation.Valid;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author ywb
 * @since 2024-04-14
 */
@RestController
@AllArgsConstructor
@ApiSupport(order = 4)
@Api(tags = {"检票记录-模块"})
@RequestMapping("/ticket-check-records")
public class TicketCheckRecordController {
    final TicketCheckRecordBusiness userBusiness;
    
    @ApiOperation("列表")
    @GetMapping
    public ResultModel<PageModel<TicketCheckRecordListOutput>> list(
        @Valid TicketCheckRecordListInput input
    ) {
        return ResultModel.success(
            userBusiness.list(input)
        );
    }
}
